package com.dongdongsongcan.app.db.bean;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Id;
import com.lidroid.xutils.db.annotation.Table;

@Table(name = "shoppingcar")
public class ShoppingCarDBBean {

    // id, shopid, productid, cout, price, package_price , make, weight
    @Id(column = "id")
    private int id;
    @Column(column = "shopid")
    private int shopid;
    @Column(column = "productid")
    private int productid;
    @Column(column = "proudctname")
    private String proudctname;
    @Column(column = "count")
    private int count;
    @Column(column = "price")
    private float price;
    @Column(column = "package_price")
    private float package_price;
    @Column(column = "make")
    private String make;
    @Column(column = "weight")
    private String weight;
    @Column(column = "img")
    private String img;

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getShopid() {
        return shopid;
    }

    public void setShopid(int shopid) {
        this.shopid = shopid;
    }

    public int getProductid() {
        return productid;
    }

    public void setProductid(int productid) {
        this.productid = productid;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public float getPackage_price() {
        return package_price;
    }

    public void setPackage_price(float package_price) {
        this.package_price = package_price;
    }

    public String getMake() {
        return make;
    }

    public void setMake(String make) {
        this.make = make;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getProudctname() {
        return proudctname;
    }

    public void setProudctname(String proudctname) {
        this.proudctname = proudctname;
    }

    public ShoppingCarDBBean() {
        super();
    }

    public ShoppingCarDBBean(int shopid, int productid, String proudctname,
                             int count, float price, float deliver_price, String img, String make,
                             String weight) {
        super();
        this.shopid = shopid;
        this.productid = productid;
        this.proudctname = proudctname;
        this.count = count;
        this.price = price;
        this.package_price = deliver_price;
        this.make = make;
        this.weight = weight;
        this.img = img;
    }

    @Override
    public String toString() {
        return "ShoppingCarDBBean [id=" + id + ", shopid=" + shopid
                + ", productid=" + productid + ", proudctname=" + proudctname
                + ", cout=" + count + ", price=" + price + ", package_price="
                + package_price + ", make=" + make + ", weight=" + weight + "]";
    }

}
